// part1:C06:ex6.26.cpp
// output main arguments.
#include <cstdlib>
#include <iostream>

int main(int argc, char **argv) {
  using namespace std;
  if (argc < 2) {
    cerr << "no argv!" << endl; 
    exit(EXIT_FAILURE);
  }

  for (int i = 0; i != argc ; ++i) {
    cout << "argc[" << i << "]: " << argv[i] << endl; 
  }

  return 0;
}
